﻿ #ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <windows.h>

#include <QMainWindow>
#include <QClipboard>
#include <QMimeData>
#include <QDebug>
#include <QTimer>

// 热键id
#define HOT_KEY_CTRL_2 0
#define HOT_KEY_CTRL_3 1

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    bool nativeEvent(const QByteArray &eventType, void *message, long *result);
private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_4_clicked();

private:
    void on_ClipboardChanged();
    void on_ClipboardAdd();
private:
    Ui::MainWindow *ui;
    QClipboard *m_pClipboard = NULL;
    bool m_bSwitch = false;
    bool m_bReadFinish = false;
    QString m_Txt = "";
    QTimer *m_pTimer = NULL;
};
#endif // MAINWINDOW_H
